package com.lagou.edu.controller;

import com.lagou.edu.service.ResumeFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @param
 * @author oyz
 * @version 1.0.4
 * @description: TODO
 * @date 2022/5/4 8:27
 */

@RestController
@RequestMapping("test")
public class AutodeliverController {



    @Autowired
    private ResumeFeignClient resumeFeignClient;

    @RequestMapping("feign/{userId}")
    public Integer useFeign(@PathVariable Long userId){
        Integer defaultResumeState = resumeFeignClient.findDefaultResumeState(userId);
        return defaultResumeState;
    }

}
